package com.nbb.wechat.wechatpcrobot;

import com.sun.jna.platform.win32.User32;
import com.sun.jna.platform.win32.WinDef;

import java.awt.*;
import java.awt.datatransfer.Clipboard;
import java.awt.datatransfer.StringSelection;
import java.awt.datatransfer.Transferable;
import java.awt.event.KeyEvent;

/**
 * @description:
 * @author: Jerry
 * @date: 2021/8/16
 */
public class WechatSendRobot {

    private WeChatRobot robot;

    public WechatSendRobot() {
        robot = new WeChatRobot();
    }
    public void send(String name, String msg) {
        robot.OpenWeChat();
        robot.ChooseFriends(name);
        robot.SendMessage(msg);
    }

}
